package entity

import (
	"shqsoft.cn/pas3ui/base"
)

//ShBlkhIndigl 不良客户对公关联
type ShBlkhIndigl struct {
	CUID   int    `gorm:"AUTO_INCREMENT;primary_key;column:CUID"`
	GLCUID string `gorm:"column:GLCUID"`
	IDNO   string `gorm:"column:IDNO"`
	CUNM   string `gorm:"column:CUNM"`
	TLNO   string `gorm:"column:TLNO"`
	ADDR   string `gorm:"column:ADDR"`
}

//TableName 对公账户表名
func (ShBlkhIndigl) TableName() string {
	return "SH_V_COMP_BLKH_DSGL"
}

func ShBlkhIndiglEF() base.EntityFunc {
	return func() interface{} {
		entity := ShBlkhIndigl{}
		return &entity
	}
}
func ShBlkhIndiglESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []ShBlkhIndigl
		return &entities
	}
}

func init() {
	dao := base.NewDefaultDao(ShBlkhIndiglEF(), ShBlkhIndiglESF(), nil, "ch")
	base.DaoPoolObj.Put("ShBlkhIndigl", dao)
}

//TIndiClie 用户
type TIndiClie struct {
	ID   int    `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	CUNM string `gorm:"column:CUNM"`
	IDNO string `gorm:"column:IDNO"`
	TLNO string `gorm:"column:TLNO"`
	ADDR string `gorm:"column:ADDR"`
}

////TableName User用户表名
func (TIndiClie) TableName() string {
	return "T_INDI_CLIE"
}

func TIndiClieEF() base.EntityFunc {
	return func() interface{} {
		entity := TIndiClie{}
		return &entity
	}
}
func TIndiClieESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []TIndiClie
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("TIndiClie", base.NewDefaultDao(TIndiClieEF(), TIndiClieESF(), nil, "ch"))
}
